<link rel="import" href="../../html/polymer.html">

<link rel="import" href="../../html/assert.html">

<dom-module id="cr-view-manager">
  <template>
    <style>
      :host ::slotted([slot=view]) {
        bottom: 0;
        display: none;
        left: 0;
        position: absolute;
        right: 0;
        top: 0;
      }

      :host ::slotted(.active),
      :host ::slotted(.closing) {
        display: block;
      }
    </style>
    <slot name="view"></slot>
  </template>
  <script src="cr_view_manager.js"></script>
</dom-module>
